//
//  TTReceiver.h
//  iBeaconDemo
//
//  Created by cry on 17/1/10.
//  Copyright © 2017年 eGova. All rights reserved.
//

#import <Foundation/Foundation.h>
@import CoreLocation;
/**
 * 由iBeacon设备数据封装的信号发射器
 */
@interface TTReceiver : NSObject
/** 信号发射器的X坐标. */
//private double xPos;
@property (nonatomic, assign) double xPos;

/** 信号发射器的Y坐标. */
//private double yPos;
@property (nonatomic, assign) double yPos;

@property (nonatomic, copy) NSString *floorName;

@property (assign, nonatomic, readonly) CLBeaconMajorValue majorValue;
@property (assign, nonatomic, readonly) CLBeaconMinorValue minorValue;

/** 信号发射器的id,对应iBeacon的UUID. */
@property (nonatomic, copy) NSString *UUID;
/** 将keyID作为唯一标识 
 *  keyID = "uuid_major_minor" 
 */
@property (nonatomic, copy, readonly) NSString *keyID;

- (instancetype)initWithxPos:(double)xPos
                        yPos:(double)yPos
                        uuid:(NSString *)uuid
                  majorValue:(CLBeaconMajorValue) majorValue
                  minorValue:(CLBeaconMinorValue) minorValue;

- (instancetype)initWithxPos:(double)xPos
                        yPos:(double)yPos
                   floorName:(NSString *)floorName
                        uuid:(NSString *)uuid
                  majorValue:(CLBeaconMajorValue) majorValue
                  minorValue:(CLBeaconMinorValue) minorValue;

+ (NSArray<TTReceiver *> *)findByParkID:(NSInteger)parkID;

@end
